package com.yuanchu.store.dto;

import com.yuanchu.store.entity.YoshopStoreUserEntity;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-01-13 19:22
 */
@Data
@ToString
public class UserInfoDto implements Serializable {

    private YoshopStoreUserEntity userInfo;
    private Roles roles;

    @Data
    public static class Roles implements Serializable {

        private int isSuper;
        private List<Permission> permissions;
    }

    @Data
    public static class Permission {
        private List<ChildPer> actionEntitySet;
        private String name;
        private String permissionId;
    }

    @Data
    public static class ChildPer {
        private String action;
        private String describe;

    }
}
